import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@utility/rem.js'
import '@styles/global.scss'

import './libs/main'

import '@libs/element-ui'
import '@libs/viewerjs'

import '@font/common/iconfont.css'
import '@font/complaint/iconfont.css'
import '@font/enterprise/iconfont.css'

import directives from '@directives'

// nprogress https://github.com/rstacruz/nprogress
import 'nprogress/nprogress.css'

import filters from './filters/index'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
Vue.use(directives)

Vue.prototype.$EventBus = new Vue()

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
